# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-wapiti-arsenic
_pkgname=wapiti_arsenic
pkgver=28.2
pkgrel=5
pkgdesc='Asynchronous WebDriver client.'
arch=('any')
url='https://pypi.org/project/wapiti-arsenic/#files'
license=('Apache')
depends=('python' 'python-aiohttp')
makedepends=('python-build' 'python-pip' 'python-wheel')
provides=('python-arsenic')
conflicts=('python-arsenic')
replaces=('python-arsenic')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('297508f2ad586a9b36b0642f4abbbb0956ada0727026fea3237f1ec29b4e5efdff201fa308b54ee2cae9cb583a450582f9d0c450d99a05bc5488917dca06f8f5')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

